import { rule } from "@/util/validateRules";
export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  searchMenuSpan: 6,
  editBtn: false,
  delBtn: false,
  align: 'center',
  addBtn: false,
  viewBtn: false,
  labelWidth:120,
  column: [{
    label: '种类编号',
    prop: 'typeNum',
    span: 24,
    rules: [
      { required: true, message: '种类编号不能为空', trigger: 'blur' }
    ]
  }, {
    label: '所属父菜单',
    prop: 'parentMenu',
    span: 24,
    search: true,
    rules: [
      { required: true, message: '所属父菜单不能为空', trigger: 'blur' }
    ]
  }, {
    label: '菜单名称',
    prop: 'menuName',
    span: 24,
    search: true,
    rules: [
      { required: true, message: '菜单名称不能为空', trigger: 'blur' }
    ]
  },{
    label: '链接',
    prop: 'links',
    span: 24,
    rules: [
      { required: true, message: '链接不能为空', trigger: 'blur' }
    ]
  }]
}
